package nvwazaoren;

public class nvwa {
    public static person getPerson(String person){
        person p = null;
        if(person.equalsIgnoreCase("Man")){
            p = new man();
        }

        else if(person.equalsIgnoreCase("Woman")){
            p = new woman();
        }

        else if(person.equalsIgnoreCase("Robot")){
            p = new robot();
        }
        return p;
    }
}